import { ref, reactive } from 'vue'
const usePoint = function () {
  const point = reactive({
    x: 0,
    y: 0,
  })

  window.addEventListener('click', (e) => {
    point.x = e.pageX
    point.y = e.pageY
  })
  return point
}

const useXXX = function () {
  const x = ref(0)
  return x
}

export { usePoint, useXXX }
